package com.jiangyao.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 班级成员信息
 * </p>
 *
 * @author xiangyan
 * @since 2020-08-13
 */
@Data
@ApiModel(value = "班级成员参数")
public class ClassUserDto implements BaseDTO  {

    private static final long serialVersionUID=1L;

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID")
    private Integer id;

    /**
     * 归属组织ID
     */
    @ApiModelProperty(value = "归属组织ID")
    @NotNull(message = "归属组织ID不能为空", groups = {Add.class})
    private Integer orgId;

    /**
     * 班级ID
     */
    @ApiModelProperty(value = "班级ID")
    private Integer classId;

    /**
     * 成员ID
     */
    @ApiModelProperty(value = "成员ID")
    @NotNull(message = "成员ID不能为空", groups = {Add.class})
    private Integer userId;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    /**
     * 状态：1=正常 0=删除
     */
    @ApiModelProperty(value = "状态：1=正常 0=删除")
    private Integer status;

    /**
     * 申请类型：1=后台导入；2=自助申请
     */
    @ApiModelProperty(value = "申请类型：1=后台导入；2=自助申请")
    private Integer applyType;




}
